package com.ty.day4;

/**
 * Created by IntelliJ IDEA.
 * Author : txy
 * Create 2023/10/31 10:17
 */
public class Three {
    public static void main(String[] args) {
        int x, s, e = 10;
        for (int i = 10000; i < 100000; i++) {
            x = i;
            s = 0;
            while (x > 0) {
                s = s * e + x % 10;
                x /= 10;
            }
            if (s == i) {
                System.out.print(i + " ");
            }
        }
    }
}
